﻿/// <summary>
/// Excel有Office和Wps目前只支持Office后期加入Wps支持。
/// </summary>
namespace SUNRPA.CONTROLS.IMPL.domain.flowItemParam {
    [Serializable]
    public class AddSheetNParam:BaseParam {
        private string excelObject = "{excelObject}";
        private string sheetName;
        //0在最前添加，1再做后面添加
        private int addPos = 0;

        public string GetTranslateAddPos() {
            if(this.addPos == 0) {
                return "最前面";
            } else { 
                return "最后面";
            }
        }
        public string GetTranslateSheetName() {
            if(string.IsNullOrEmpty(sheetName)) {
                return "Sheet";
            } else { 
                return sheetName;
            }
        }
        public int AddPos {
            get => addPos; 
            set { 
                addPos = value;
                NotifyPropertyChanged("AddPos");
            }  
        }
        public string ExcelObject {
            get => excelObject; 
            set { 
                excelObject = value;
                NotifyPropertyChanged("ExcelObject");
            }  
        }
        public string SheetName {
            get => sheetName; 
            set { 
                sheetName = value;
                NotifyPropertyChanged("SheetName");
            }  
        }
    }
}
